export default {
    isPhone: (str: string) => {
        let reg = /0?(13|14|15|17|18|19)[0-9]{9}/;
        return str.match(reg);
    },
    isEmail: (str: string) => {
        let reg = /\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/;
        return str.match(reg);
    }
}